<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{$Think.config.sitename}</title>
<link href="__PUBLIC__/dwz/themes/default/style.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="__PUBLIC__/dwz/themes/css/core.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="__PUBLIC__/dwz/themes/css/print.css" rel="stylesheet" type="text/css" media="print"/>
<link href="__PUBLIC__/dwz/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen"/>
<!--[if IE]>
<link href="__PUBLIC__/dwz/themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->

<script src="__PUBLIC__/dwz/js/speedup.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery-1.7.1.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery.cookie.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery.validate.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/xheditor/xheditor-1.1.12-zh-cn.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/uploadify/scripts/swfobject.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/uploadify/scripts/jquery.uploadify.v2.1.0.js" type="text/javascript"></script>

<script src="__PUBLIC__/dwz/js/dwz.core.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.util.date.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.validate.method.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.barDrag.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.drag.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.tree.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.accordion.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.ui.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.theme.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.switchEnv.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.alertMsg.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.contextmenu.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.navTab.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.tab.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.resize.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.dialog.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.dialogDrag.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.sortDrag.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.cssTable.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.stable.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.taskBar.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.ajax.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.pagination.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.database.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.datepicker.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.effects.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.panel.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.checkbox.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.history.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.combox.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.print.js" type="text/javascript"></script>
<!--
<script src="__PUBLIC__/dwz/bin/dwz.min.js" type="text/javascript"></script>
-->
<script src="__PUBLIC__/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>

<script type="text/javascript">
function fleshVerify(){
	//重载验证码
	$('#verifyImg').attr("src", '__APP__/Public/verify/'+new Date().getTime());
}
function dialogAjaxMenu(json){
	dialogAjaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
		$("#sidebar").loadUrl("__APP__/Public/menu");
	}
}
function navTabAjaxMenu(json){
	navTabAjaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
		$("#sidebar").loadUrl("__APP__/Public/menu");
	}
}
$(function(){
	DWZ.init("__PUBLIC__/dwz/dwz.frag.xml", {
		loginUrl:"__APP__/Public/login_dialog", loginTitle:"登录",	// 弹出登录对话框
//		loginUrl:"__APP__/Public/login",	//跳到登录页面
		statusCode:{ok:1,error:0},
		pageInfo:{pageNum:"pageNum", numPerPage:"numPerPage", orderField:"_order", orderDirection:"_sort"}, //【可选】
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"__PUBLIC__/dwz/themes"});
		}
	});
});
</script>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="__APP__">Logo</a>
				<ul class="nav">
					<li><a href="__APP__/Public/main" target="dialog" width="580" height="400" rel="sysInfo">系统消息</a></li>
					<li><a href="__APP__/Public/password/" target="dialog" width="300" height="200" mask="true">修改密码</a></li>
					<li><a href="__APP__/Public/profile/" target="dialog" width="580" height="260" mask="true">修改资料</a></li>
					<li><a href="__APP__/Public/logout/">退出</a></li>
				</ul>
				<ul class="themeList" id="themeList">
					<!--<li theme="azure" class="selected"><div >蓝色</div></li>-->
					<!--<li theme="green"><div>绿色</div></li>-->
					<!--<li theme="purple"><div>紫色</div></li>-->
					<!--<li theme="silver"><div>银色</div></li>-->
					<!--<li theme="default" ><div>天蓝</div></li>-->
				</ul>
			</div>
		</div>
		
		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			
			<div id="sidebar">
            <div class="toggleCollapse"><h2>主菜單</h2><div>收縮</div></div>
				<include file="Public:menu" />
			</div>
		</div>

		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:void(0)"><span><span class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:void(0)">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div class="accountInfo">
						    <div class="right">
								<p style="font-size:20px;">{$Think.now}</p>
							</div>
							<p><span>{$Think.config.sitename}</span></p>
							<p>Welcome, {$Think.session.loginUserName}!</p>
						</div>
						<div class="pageFormContent" layoutH="80">
                        一、当前库存状况:<br />
                        <table class="list">
                         <tr>
                          <th align=center>库存总数量</th>
                          <th align=center>库存总金额(￥)</th>
                         </tr>
                         <tr>
                          <td align=center>{$stockNums}</td>
                          <td align=center>{$stockAccount}</td>
                         </tr>
                        </table>
						<div class="divider"></div>
                        二、今日进货状况<br />
                        <table class="list">
                         <tr>
                          <th align=center>进货数量</th>
                          <th align=center>进货金额(￥)</th>
                          <th align=center>进货退货数量</th>
                          <th align=center>进货退货金额(￥)</th>
                         </tr>
                         <tr>
                          <td align=center>{$Qlist.phNums}</td>
                          <td align=center>{$Qlist.phAmount}</td>
                          <td align=center>{$Qlist.pbNums}</td>
                          <td align=center>{$Qlist.pbAmount}</td>
                         </tr>
                        </table>
						<div class="divider"></div>
						三、今日销售状况<br />
                        <table class="list">
                         <tr>
                          <th align=center>销售数量</th>
                          <th align=center>销售金额(￥)</th>
                          <th align=center>销售退货数量</th>
                          <th align=center>销售退货金额(￥)</th>
                         </tr>
                         <tr>
                          <td align=center>{$Qlist.slNums}</td>
                          <td align=center>{$Qlist.slAmount}</td>
                          <td align=center>{$Qlist.sbNums}</td>
                          <td align=center>{$Qlist.sbAmount}</td>
                         </tr>
                        </table>
                        <div class="divider"></div>
						最近登录记录：<br />
                        <table class="list">
                         <tr>
                          <th align=center>序號</th>
                          <th align=center>用户</th>
                          <th align=center>登录IP</th>
                          <th align=center>登录时间</th>
                         </tr>
                            <volist name="logList" id="v">
                             <tr class="row" >
                               <td>{$key+1}</td>
                               <td>{$v.userid|getTableColVal=User,nickname}</td>
                               <td>{$v.last_login_ip}</td>
                               <td>{$v.login_time|date="Y-m-d H:i:s",###}</td>
                             </tr>
                            </volist>
                        </table>
                        </div>

					</div>
				</div>
			</div>
		</div>

	</div>
	
	<div id="footer">Copyright &copy; 2016 {$Think.config.COMPANY} All Rights Reserved.</div>


</body>
</html>